c980e6e7372a9164e0dc24b6593bd73a959b9df7,plugins/groovy/src/org/jetbrains/plugins/groovy/refactoring/convertToJava/ExpressionGenerator.java,ExpressionGenerator,generatePrefixIncDec,#PsiMethod#GrExpression#GrUnaryExpression#,528

Before Change


      else {
        curBuilder.append(" = ");
      }
      curGenerator.invokeMethodOn(
        method,
        (GrExpression)operand.copy(),
        GrExpression.EMPTY_ARRAY, GrNamedArgument.EMPTY_ARRAY, GrClosableBlock.EMPTY_ARRAY,
        resolveResult.getSubstitutor(),
        unary
      );
      if (shouldInsertParentheses) {
        curBuilder.append(')');
      }

After Change


      else {
        curBuilder.append(" = ");
      }
      if (shouldNotReplaceOperatorWithMethod(operand.getType(), null, unary.getOperationTokenType())) {
        writeSimpleUnary((GrExpression)operand.copy(), unary, curGenerator);
      }
      else {
        curGenerator.invokeMethodOn(
          method,
          (GrExpression)operand.copy(),
          GrExpression.EMPTY_ARRAY, GrNamedArgument.EMPTY_ARRAY, GrClosableBlock.EMPTY_ARRAY,
          resolveResult.getSubstitutor(),
          unary
        );
      }
      if (shouldInsertParentheses) {
        curBuilder.append(')');